#include "endwidget.h"

endwidget::endwidget(QWidget *parent)
    : QWidget{parent}
{

    this->setFixedSize(400,100);
    this->setWindowTitle("游戏结束");
    //退出按钮
    quitbt=new QPushButton(this);
    quitbt->move(10,10);
    quitbt->setFixedSize(185,50);
    quitbt->setFont(QFont("宋体",18));
    quitbt->setText("退出");
    connect(quitbt,SIGNAL(clicked()),this,SLOT(hide()));
    //重玩按钮
    againbt=new QPushButton(this);
    againbt->move(205,10);
    againbt->setFixedSize(185,50);
    againbt->setFont(QFont("宋体",18));
    againbt->setText("重玩");
    connect(againbt,SIGNAL(clicked()),this,SLOT(hide()));

}
